package com.cjx.api.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cjx.api.model.dto.productinfo.ProductInfoQueryRequest;
import com.cjx.api.model.entity.ProductInfo;
import com.cjx.api.model.vo.ProductInfoVO;

import javax.servlet.http.HttpServletRequest;

/**
* @author cjx
* @description 针对表【product_info(产品信息)】的数据库操作Service
* @createDate 2024-05-16 15:31:51
*/
public interface ProductInfoService extends IService<ProductInfo> {

    boolean offlineProduct(Long id, HttpServletRequest request);

    boolean onlineProduct(Long id, HttpServletRequest request);

    /**
     * 分页查询
     * @param productInfoQueryRequest
     * @param request
     * @return
     */
    Page<ProductInfoVO> listProductInfoByPage(ProductInfoQueryRequest productInfoQueryRequest, HttpServletRequest request);
}
